
<%@page import="java.util.Date"%><%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<s:set value="currentDate" var="currentDate" />
<s:set value="item.endTime" var="item.endTime" />

	<script type="text/javascript" src="js/jquery-1.2.3.js"></script>
	<script type="text/javascript" src="js/jquery.cycle.js"></script>

		<table width="100%" cellpadding="0" cellpadding="0">
			<tbody>
				<tr>
					<td><s:fielderror/><s:actionerror/></td>
				</tr>
				<tr>
					<td>
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td class="heding">
										<table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody>
												<tr>
													<td style="color: rgb(30, 80, 180);" align="left">
														<font color="#000000" class="common-bold-text"><s:property value="item.title" /></font>
													</td>

													<td align="right" class="common-bold-text"
														style="color: rgb(30, 80, 180);">
														<s:text name="sellingauction.itemnr" />
														<s:property value="item.itemId" />
													</td>
												</tr>
											</tbody>
										</table>
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td height="200" valign="top">
						<table border="0" cellpadding="8" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td valign="top" width="50%">
										<table style="border-collapse: collapse;" border="0"
											cellpadding="2" cellspacing="0">

											<tbody>
											<s:if test="item.itemtype.id == 1">
												<tr>
													<td align="right" valign="top" class="search-text" width="47%">
														Starting bid:
													</td>
													<td align="left" valign="top" class="common-text">
														<b><s:property value="item.startBid" /> <s:property value="item.currency.currency" /> </b>
													</td>
												</tr>
												<tr>
													<td align="right" valign="top" class="search-text">
														Current bid:
													</td>
													<td align="left" valign="top" class="common-text">
														<b><s:property value="item.currentBid" /> <s:property value="item.currency.currency" /> </b>
													</td>
												</tr>
												<tr>
													<td align="right" valign="top" class="search-text">
														Bid increment:
													</td>
													<td align="left" valign="top" class="common-text">
														<b><s:property value="item.increment" /> <s:property value="item.currency.currency" /></b>
													</td>
												</tr>
											</s:if>
											<s:if test="item.itemtype.id != 6 && item.itemtype.id != 1">
												<tr>
													<td align="right" valign="top" class="search-text" width="47%">
														<s:text name="sellingauction.price" />
													</td>
													<td align="left" valign="top" class="common-text">
														<b><s:property value="item.startBid" /> <s:property value="item.currency.currency" /> </b>
													</td>
												</tr>
												<tr>
													<td align="right" valign="top" class="search-text">
														<s:text name="showitem.quantity" />
													</td>
													<td align="left" valign="top" class="common-text">
														<b><s:property value="item.quantity" /> <font color="blue"> (Available: <s:property value="item.quantity - item.sold" />, Sold: <s:property value="item.sold" />)</font> </b>
													</td>
												</tr>
											</s:if>
												<tr>
													<td align="right" valign="top" nowrap="nowrap"
														class="search-text">
														<s:text name="showitem.started" />
													</td>
													<td align="right" valign="top" class="common-text">
														<b><font color="#0000ff"><s:date name="item.startTime" format="EEEE, dd.MM.yyyy HH:mm" /></font></b>
													</td>
												</tr>
												<tr>
													<td align="right" valign="top" nowrap="nowrap"
														class="search-text">
														<s:text name="showitem.currenttime" />
													</td>

													<td align="right" valign="top" class="common-text">
														<b><font color="#0000ff"><s:date name="currentDate" format="EEEE, dd.MM.yyyy HH:mm" /></font> </b>
													</td>
												</tr>
												<tr>
													<td align="right" valign="top" nowrap="nowrap"
														class="search-text">
														<s:text name="showitem.end" />
													</td>
													<td align="right" valign="top" class="common-text">
														<b><font color="#0000ff"><s:date name="item.endTime" format="EEEE, dd.MM.yyyy HH:mm" /></font> </b>
													</td>

												</tr>
											<s:if test="item.itemtype.id != 6">
												<tr>
													<td align="right" valign="top" nowrap="nowrap"
														class="search-text">
														<s:text name="sellingauction.timeleft" />
													</td>
													<td align="right" valign="top" class="common-text">
														<b> <font color="#006600"> <ilayer
																	id="CountDown" width="200" height="18"
																	visibility="hide"> <layer id="CountDown1"
																	width="200" height="18" left="0" top="0"><span
																id="CountDown2"></span> </layer> </ilayer>
														</font> </b>
													</td>
												</tr>
											</s:if>
											</tbody>
										</table>
									</td>
									<td valign="top" width="50%">
										<table style="border-collapse: collapse;" border="0"
											cellpadding="2" cellspacing="0" width="100%">
											<tbody>
												<tr>

													<td width="35%" align="right" valign="top" nowrap="nowrap"
														class="search-text">
														<s:text name="showitem.seller" />
													</td>
													<td align="left" valign="top" class="common-text">
														<a href="viewMyFeedback.htm?userId=<s:property value="item.userId.userId" />"><b><s:property value="item.userId.userId" /></b> </a> (1)
														<s:if test="userInfo.verified2">
															<img src="images/verified2.gif" alt="Verified Plus Plus User" align="middle" border="0">
														</s:if>
														<s:elseif test="userInfo.verified1">
															<img src="images/verified1.gif" alt="Verified Plus User" align="middle" border="0">
														</s:elseif>
														<s:elseif test="userInfo.verified">
															<img src="images/verified.gif" alt="Verified User" align="middle" border="0">
														</s:elseif>
														<s:if test="userInfo.power">
															<img src="images/power.gif" alt="Power User" align="middle" border="0">
														</s:if>
														<s:if test="userAboutMe != null">
															<a href="aboutMe.htm?userId=<s:property value="item.userId.userId" />"><img src="images/aboutme.gif" alt="me" align="middle" border="0"></a>
														</s:if>
													</td>
												</tr>
											<s:if test="item.itemtype.id == 1">
												<tr>
													<td align="right" valign="top" class="search-text">
														High bidder:
													</td>
													<td valign="top" class="common-text">
														<a href="viewMyFeedback.htm?userId=<s:property value="auctionBids.user.userId" />"><b><s:property value="auctionBids.user.userId" /> </b></a>
														<s:if test="bidderUserInfo.verified2">
															<img src="images/verified2.gif" alt="Verified Plus Plus User" align="middle" border="0">
														</s:if>
														<s:elseif test="bidderUserInfo.verified1">
															<img src="images/verified1.gif" alt="Verified Plus User" align="middle" border="0">
														</s:elseif>
														<s:elseif test="bidderUserInfo.verified">
															<img src="images/verified.gif" alt="Verified User" align="middle" border="0">
														</s:elseif>
														<s:if test="bidderUserInfo.power">
															<img src="images/power.gif" alt="Power User" align="middle" border="0">
														</s:if>
														<s:if test="bidderUserAboutMe != null">
															<a href="aboutMe.htm?userId=<s:property value="auctionBids.user.userId" />"><img src="images/aboutme.gif" alt="me" align="middle" border="0"></a>
														</s:if>
													</td>
												</tr>
												<tr>
													<td align="right" valign="top" class="search-text">
														Nr. of bids:
													</td>
													<td valign="top" class="common-text">
														<b><s:property value="item.bids.size" /> </b>
													</td>
												</tr>
											</s:if>
												<tr>
													<td align="right" valign="top" class="search-text">
														<s:text name="showitem.location" />
													</td>
													<td valign="top" class="common-text">
														<b><s:property value="item.userId.city" /> <s:property value="item.userId.zip" /></b>
													</td>

												</tr>
												<tr>
													<td align="right" valign="top" class="search-text">
														<s:text name="showitem.region" />
													</td>
													<td valign="top" class="common-text">
														<b><s:property value="item.userId.region.categoryName" />, <s:property value="item.userId.country.categoryName" />, <s:property value="item.userId.state.categoryName" /></b>
													</td>
												</tr>

												<tr>
													<td align="right" valign="top" class="search-text">
														<s:text name="showitem.language" />
													</td>

													<td valign="top" class="common-text">
														<b><s:property value="item.itemLanguage.languageName" /></b>
													</td>
												</tr>

											<s:if test="item.itemtype.id != 6">
												<tr>
													<td colspan="2" align="left" valign="top">
														<a href="#buy" class="common-link"
															style="font-weight: bold; font-size: 13px; color: rgb(255, 0, 0); text-decoration: underline;">Buy now</a>
													</td>
												</tr>
											</s:if>
											</tbody>
										</table>
									</td>

								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table border="0" cellpadding="6" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td class="common-bold-text" colspan="2">
										<s:text name="showitem.description" />
									</td>
								</tr>
								<tr>
									<td align="center" width="50%">
										<div id="s3" class="pics">
										<s:if test="%{itemAuctionImages != null && itemAuctionImages.size > 0}">
											<s:iterator value="itemAuctionImages">
												<s:if test="id.contentType == 'image/jpeg' || id.contentType == 'image/gif' || id.contentType == 'image/png' || id.contentType == 'image/bmp'">
													<img src="<s:property value="id.imagePath" />" height="200" width="200">
												</s:if>
											</s:iterator>
										</s:if>
										<s:elseif test="%{itemAuctionImages == null}">
											<img src="images/no_image.gif" height="200" width="200">
										</s:elseif>
										</div>
										<script type="text/javascript">
											$('#s3').cycle({
											    fx:     'fade',
											    speed:   300,
											    timeout: 3000,
											    next:   '#s3',
											    pause:   1
											});
										</script>
									</td>
									<td align="justify" valign="top" class="common-text">
										<s:property value="item.description" escape="false" />
									</td>
								</tr>
								<tr>
									<td align="center" colspan="2">
										<s:if test="%{itemAuctionImages != null && itemAuctionImages.size > 0}">
											<s:iterator value="itemAuctionImages">
												<s:if test="id.contentType != 'image/jpeg' || id.contentType != 'image/gif' || id.contentType != 'image/png' || id.contentType != 'image/bmp'">
													<s:if test="id.contentType == 'application/msword'">
														<a href="servlet/download?filename=<s:property value="id.imagePath" />"><img src="images/doc.jpeg" border="0" height="20" width="20" /></a>
													</s:if>
													<s:elseif test="id.contentType == 'text/plain'">
														<a href=""><img src="images/txt.jpeg" border="0" height="20" width="20" /></a>
													</s:elseif>
													<s:elseif test="id.contentType == 'application/pdf'">
														<a href=""><img src="images/pdf.jpeg" border="0" height="20" width="20" /></a>
													</s:elseif>
													<s:elseif test="id.contentType == 'audio/x-wav'">
														<a href=""><img src="images/wav.jpeg" height="20" width="20" /></a>
													</s:elseif>
													<s:elseif test="id.contentType == 'audio/midi'">
														<a href=""><img src="images/mid.jpeg" border="0" height="20" width="20" /></a>
													</s:elseif>
													<s:elseif test="id.contentType == 'video/quicktime'">
														<a href=""><img src="images/mov.jpeg" border="0" height="20" width="20" /></a>
													</s:elseif>
													<s:elseif test="id.contentType == 'video/msvideo'">
														<a href=""><img src="images/avi.jpeg" border="0" height="20" width="20" /></a>
													</s:elseif>
												</s:if>
											</s:iterator>
										</s:if>
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td style="padding: 8px;">
						<table border="0" cellpadding="0" cellspacing="2" height="100%"
							width="100%">
							<tbody>
								<tr>
									<td>
										<p align="center" class="common-text">
											<font color="BLACK" size="2"><b><s:text
														name="showitem.view" /> <img
														src="images/dig<s:property value="views[5]" />.gif"
														alt="0" align="middle" border="0"> <img
														src="images/dig<s:property value="views[4]" />.gif"
														alt="0" align="middle" border="0"> <img
														src="images/dig<s:property value="views[3]" />.gif"
														alt="0" align="middle" border="0"> <img
														src="images/dig<s:property value="views[2]" />.gif"
														alt="0" align="middle" border="0"> <img
														src="images/dig<s:property value="views[1]" />.gif"
														alt="1" align="middle" border="0"> <img
														src="images/dig<s:property value="views[0]" />.gif"
														alt="7" align="middle" border="0"> <s:text
														name="showitem.times" /> </b> </font>
										</p>
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
			<s:if test="item.itemtype.id != 6">
				<tr>
					<td>
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td class="common-bold-text">
										Shipping &amp; Handling
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td style="padding: 8px;">
						<table width="100%" border="0" cellpadding="0" cellspacing="2">
							<tbody>
								<tr>
									<td align="right" valign="top" class="search-text">
										<b><s:text name="showitem.shiptime" /> </b>
									</td>
									<td class="common-text">
										<s:property value="item.shipTime.name" />
									</td>
								</tr>
								<tr>
									<td align="right" valign="top" class="search-text">
										<b><s:text name="showitem.Will" /> </b>
									</td>
									<td class="common-text">
										<s:iterator value="shipTo" status="row">
											<s:property value="%{shipTo[#row.index]}" /><s:if test="#row.last == false">, </s:if>
										</s:iterator>
									</td>
								</tr>
								<tr>
									<td align="right" valign="top" class="search-text">
										<b><s:text name="showitem.shippingcost" /> </b>
									</td>
									<td class="common-text">
										<s:property value="item.shipPayment" /> <s:property value="item.currency.currency" /> Buyer Pays Actual Shipping Cost
									</td>
								</tr>

							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td class="common-bold-text">
										Payment methods
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td style="padding: 8px;">
						<table width="100%" border="0" cellpadding="0" cellspacing="2">
							<tbody>
								<tr>
									<td align="right" valign="top" class="search-text" width="40%">
										<b>Additional payment instructions: </b>
									</td>
									<td class="common-text">
										<s:property value="item.paymentDetails" />&nbsp;
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td class="common-bold-text">
										Return policy
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td style="padding: 8px;">
						<table width="100%" border="0" cellpadding="0" cellspacing="2">
							<tbody>
								<tr>
									<td align="right" valign="top" class="search-text">
										<b>Return period: </b>
									</td>
									<td class="common-text">
										<s:property value="item.returnPeriod.name" />
									</td>
								</tr>
								<tr>
									<td align="right" valign="top" class="search-text">
										<b>Refund method: </b>
									</td>
									<td class="common-text">
										<s:property value="item.returnMethod.name" />
									</td>
								</tr>
								<tr>
									<td align="right" valign="top" class="search-text">
										<b>Return policy: </b>
									</td>
									<td class="common-text">
										<s:property value="item.returnDetails" /> <s:property value="item.currency.currency" /> Buyer Pays Actual Shipping Cost
									</td>
								</tr>

							</tbody>
						</table>
					</td>
				</tr>
			<s:if test="item.itemtype.id == 2">
				<tr>
					<td>
						<table border="0" cellpadding="0" cellspacing="0" width="100%">

							<tbody>
								<tr>
									<td class="common-bold-text">
										<a name="buy"></a>Buy now
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td align="center">
						<form method="post" action="reviewBuyItNow.htm">
						<s:hidden name="item.itemId" value="%{item.itemId}" />
						<table cellpadding="2" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td align="right" class="common-text">
										Buy this item now for
										<b><s:property value="item.startBid" /> <s:property value="item.currency.currency" /> </b>
									<s:if test="item.quantity > 1">
										per item. <b><s:text name="showitem.quantity" /> </b><input name="bidQuantity" value="" size="6" type="text" />
									</s:if>
									<s:else>
										<input name="bidQuantity" value="1" type="hidden" />
									</s:else>
									</td>
									<td align="left" class="common-text">
										<table border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
												<td class="btn-grey-middle1 "><input type="submit" name="Submit" value="Buy Now" class="submit-btn-common" /></td>
												<td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
											</tr>
										</table>
									</td>
								</tr>
							</tbody>
						</table>
						</form>
					</td>
				</tr>
			</s:if>
			</s:if>
				<tr>
           			<td>&nbsp;</td>
           		</tr>
			<s:if test="fromPage == 'makeOffer'">
				<tr>
					<td>

						<table border="0" cellpadding="0" cellspacing="0" width="100%">
			           		<tr>
			           			<td>&nbsp;</td>
			           		</tr>
				            <tr>
				            	<td>
				            		<div class="blue-text16" style="margin: 0px 0px 0px 0px">
										Make an offer
									</div>
									<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
				            	</td>
				            </tr>
			       		</table>
			       	</td>
			      </tr>
			      <tr>
			      	<td height="5"></td>
			      </tr>

			      <tr>
			        <td style="padding: 8px; background-color: rgb(237, 244, 255);" align="center"><table border="0" cellpadding="2" cellspacing="0">
			          <s:form method="post" enctype="multipart/form-data" action="makeOffer.htm" theme="simple">
			          <s:hidden name="cid" value="%{item.itemId}" />
			          <s:hidden name="fromPage" value="%{fromPage}" />
			          <tr>
			          	<td>
			          		<s:actionerror cssClass="error-text"/>
			          		<s:actionmessage cssClass="error-text"/>
			          		<s:fielderror cssClass="error-text"/>
			          	</td>
			          </tr>
			          <tr>
			            <td align="right"><b>Image:</b></td>
			            <td valign="top">
			                    	<div class="fileinputs">
			                    	<s:file name="upload" theme="simple" cssClass="file" onchange="javascript:document.getElementById('Input').value = this.value" />
			                      		<div class="fakefile">
					                        <table border="0" cellpadding="2" cellspacing="0">
					                          <tr>
			                           			 <td>
			                           			 <input name="Input" class="textfield" id="Input"  readonly="readonly"/></td>
			                            		 <td>
			                            			<table width="100%" border="0" cellspacing="0" cellpadding="0">
													  <tr>
													    <td class="btn-grey-left1"></td>
													    <td valign="top" class="btn-grey-middle1">
														   <div style="margin:1px 0px 0px 0px">
														   	<input name="button" type="button" class="submit-btn-common1" value="<s:text name="button.upload" />" />
														   </div>
													    </td>
													    <td valign="top" class="btn-grey-right1"></td>
													  </tr>
													</table>
												</td>
					                          </tr>
					                        </table>
										</div>
									</div>
								</td>
			          </tr>
			          <tr>
			            <td align="right"><b>Title:</b></td>
			            <td><s:textfield name="itemOffers.title" theme="simple" /></td>
			          </tr>
			          <tr>
			            <td align="right"><b>Offer valid for:</b></td>
			            	<td>
						<s:select theme="simple" cssClass="Textfiled-border"
							name="itemOffers.duration"
							list="#{'3':'3 Days', '5':'5 Days' , '7':'7 Days', '10':'10 Days','15':'15 Days','30':'30 Days'}"></s:select>
					</td>

			          </tr>
			          <tr>
			            <td align="right"><b>Willing to sell for:</b></td>
			            <td><s:textfield name="itemOffers.price" theme="simple" /> Euro </td>
			          </tr>
			          <tr>

			            <td align="right"><b>Item condition:</b></td>
			            <td>
			            	<s:select theme="simple" cssClass="Textfiled-border"
							name="itemOffers.itemCondition"
							list="#{'Fair':'Fair', 'Any':'Any' , 'Brand New':'Brand New', 'Excellent - Hardly Used':'Excellent - Hardly Used','Perfect Working order':'Perfect Working order','Poor':'Poor','Used':'Used','Well Used':'Well Used'}"></s:select>
			           </td>
			          </tr>
			          <tr>

			            <td align="right" valign="top"><b>Item description:</b></td>
			            <td><s:textarea name="itemOffers.description" rows="10" cols="50" theme="simple"></s:textarea></td>
			          </tr>
			          <tr><td>&nbsp;</td></tr>
			          <tr>
					  	<td colspan="3">
							<table border="0" cellspacing="0" cellpadding="0" align="center">
								<tr>
									<td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
									<td class="btn-grey-middle1 "><s:submit value="%{getText('button.submit')}" theme="simple" cssClass="submit-btn-common" /></td>
									<td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
								</tr>
							</table>
						</td>
					  </tr>
			        </s:form>
			        </table>


					</td>
				</tr>
				</s:if>
				<s:if test="fromPage == 'createAuction' || item.itemtype.id == 1">
				<!--  <Bidding portion> -->
				<tr>
					<td>
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td ><div class="blue-text16" style="margin: 0px 0px 0px 0px">
				<s:text name="bidding_title" />
			</div>
			<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
			<div style="margin: 0px 0px 12px 0px">
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td >
						<s:form theme="simple" action="confirmAuctionBid.htm" id="form" name="form">
						<s:hidden name="cid" value="%{item.itemId}" />
						<s:hidden name="p" value="%{'createAuction'}" />
						<table border="0" cellpadding="2" cellspacing="0" width="100%">
							<tbody>
							<tr>
								<td>
									<s:actionerror cssClass="error-text"/>
									<s:fielderror cssClass="error-text"/>
									<s:actionmessage cssClass="error-text"/>
								</td>
							</tr>
								<tr>
									<td align="right" width="50%" class="search-text">
										<b><s:text name="bidding_opening_bid_label" /></b>
									</td>
									<td width="50%" class="common-text">
										<s:property value="item.startBid"/> <s:property value="item.currency.currency"/>
									</td>
								</tr>
								<tr>
									<td align="right" class="search-text">
										<b><s:text name="bid_increment" /></b>
									</td>
									<td class="common-text">
										<s:property value="item.increment"/> <s:property value="item.currency.currency"/>
									</td>
								</tr>

								<tr>
									<td align="right" class="search-text">
										<b><s:text name="minimum_bid_label" /></b>
									</td>
									<td class="common-text">
										<s:set name="minBid" value="%{item.startBid + item.increment}"></s:set>
										<s:property value="#minBid"/> <s:property value="item.currency.currency"/>
									</td>
								</tr>
								<s:if test="%{item.status.id != 1}">
								<tr>
									<td align="right" class="search-text">
										<b><s:text name="bidding_quantity_label" /></b>
									</td>
									<td>
										<s:textfield cssClass="textfield" name="auctionBids.bidQty" theme="simple"/>
									</td>
								</tr>
								</s:if>

								<tr>
									<td align="right" valign="top" class="search-text">
										<b><s:text name="bidder_maxbid_label" /></b>
									</td>
									<td>
										<s:textfield cssClass="textfield" name="auctionBids.maxBid" theme="simple"/>
											<s:if test="%{item.status.id == 1}">
												<s:set name="disabled" value="%{'true'}"></s:set>
												<s:set name="title" value="%{'Bidding Closed!'}"></s:set>
											</s:if>
											<s:elseif test="%{item.closed == true}">
												<s:set name="disabled" value="%{'true'}"></s:set>
												<s:set name="title" value="%{'Bidding Closed!'}"></s:set>
											</s:elseif>
											<s:else>
												<s:set name="title" value="%{'Review Bids'}"></s:set>
											</s:else>
										<table border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td class="btn-grey-left1"></td>
												<td class="btn-grey-middle1 ">
													<s:submit value="%{title}" theme="simple" disabled="#disabled" cssClass="submit-btn-common" />
												</td>
												<td class="btn-grey-right1"></td>
											</tr>
										</table>
									</td>
								</tr>

								<tr>
									<td colspan="2" class="common-text">
										<!--Proxy_Notes-->
										<s:text name="dutch_auction_type" />
										<s:text name="bid_contract_help" />
									</td>
								</tr>

							</tbody>
						</table></s:form></td></tr></table></div>
						</table>

					</td>
				</tr>
				</s:if>
				<!-- </Bidding portion> -->
<s:if test="item.itemtype.id != 6">
				<!-------------Count down counter start----------------->
				<script language="JavaScript">
var now=<%= ((Date) pageContext.getAttribute("currentDate")).getTime() %>;
var passed = '<font color="#CC0000">Closed</font>';
var crosscount='';
function ShowZeroFilled(inValue)
{
 if (inValue > 9) return "" + inValue;
 return "0" + inValue;
}
function Start_CountDown()
{
 if(document.layers)
 {
  document.CountDown.visibility="show";
 }
 else
 {
  if (document.all || document.getElementById) crosscount=document.getElementById&&!document.all?document.getElementById("CountDown2") : CountDown2;
 }
 countdown();
}
window.onload=Start_CountDown;
function countdown()
{
 dd=<%= ((Date) pageContext.getAttribute("item.endTime")).getTime() %>-now;
 now+=1000;
 dday=Math.floor(dd/(60*60*1000*24)*1);
 dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
 dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
 dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);
//if passed day of occasion
 if(dday<=-1)
 {
  if (document.layers)
  {
   document.CountDown.document.CountDown1.document.write(passed);
   document.CountDown.document.CountDown1.document.close();
  }
  else if(document.all||document.getElementById)
  {
   crosscount.innerHTML=passed;
  }
  return
 }
//else, if not yet
 else
 {
  dhour = ShowZeroFilled(dhour);
  dmin = ShowZeroFilled(dmin);
  dsec = ShowZeroFilled(dsec);
  if (dday == 0)
  {
   daystime = '0 Days';
  }
  else if (dday== 1)
  {
   daystime = dday+' Day +';
  }
  else
  {
   daystime = dday+'  Days + ';
  }
  if (document.layers)
  {
   document.CountDown.document.CountDown1.document.write(daystime+dhour+":"+dmin+":"+dsec);
   document.CountDown.document.CountDown1.document.close();
  }
  else if (document.all||document.getElementById)
  {
   crosscount.innerHTML=daystime+dhour+":"+dmin+":"+dsec;
  }
 }
 setTimeout("countdown()",1000)
}
</script>
</s:if>
				<!-------------Count down counter end----------------->
			</tbody>
		</table>
